package com.embracesource.monitor.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.embracesource.monitor.dto.ServerDTO;
import com.embracesource.monitor.entity.Server;

import java.util.List;

/**
 * <p>
 * 基础平台-服务器表 服务类
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-09-03
 */
public interface IServerService extends IService<Server> {

    boolean saveServer(Server server);

    boolean createServer(Server server);

    boolean deleteServer(String serverId);

    boolean updateServer(Server server);

    ServerDTO selectServer(String serverId);

    Page<ServerDTO> listServer(Server server, Long current, Long size);
}
